home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Inspectors / SwapView_2.0r / SwapView.h < prev    next >
Text File  |  1995-06-12  |  1KB  |  52 lines

  1. /*
  2.  * Author: Greg Burd, Mr. Average Developer
  3.  *    (I would like to be a member of the NeXT Developer Support Team.)
  4.  *
  5.  * You may freely copy, distribute and reuse the code in this example.  
  6.  * I disclaim any warranty of any kind, expressed or implied, as to 
  7.  * its fitness for any particular use.
  8.  */
  9.  
  10. #import <appkit/View.h>
  11.  
  12. @interface SwapView:View
  13. {
  14.     id        lastInspector;
  15.     id        currentInspector;
  16.     id        delegate;
  17.     float    backgroundGray;
  18. }
  19.  
  20. - init;
  21. - initFrame:(NXRect *)frame;
  22. - delegate;
  23. - setDelegate:(id)anObject;
  24. - (float)backgroundGray;
  25. - setBackgroundGray:(float)aColor;
  26. - currentInspector;
  27. - lastInspector;
  28. - swapIt:sender;
  29. - swapIt;
  30. - free;
  31.  
  32. @end
  33. /*---------------------------------------------------------------------------*/
  34. /* DELEGATE NEEDS TO ANSWER 
  35.  
  36. - whatPanel        <-  This has the id of the loaded panel.  That panel's
  37.                     contentView is used as the inspector.  The panel's
  38.                     frame should be the same size as the SwapView.
  39.                         
  40. So below we have set up a dummy interface declaration so we don't get
  41. a complier error, and we can send a
  42.     [delegate respondsTo:@selector(whatPanel)];
  43. And make sure that the delegate has the method. Stability, known state, etc...
  44. */
  45.  
  46. @interface someDelegate:Object
  47.  
  48. - whatPanel;
  49.  
  50. @end
  51.  
  52.